package com.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "${hqb.name}",url = "${hqb.url}")
public interface HttpConsumeService {

    /**
     * 外部http请求
     * @return
     */
    @RequestMapping(value = "/openservice/getGoodsList.shtml", method = RequestMethod.GET)
    String httpTest(@RequestParam("sysId")String sysId,@RequestParam("parentId")String parentId);
}
